package com.peng.test.socket;

import com.peng.rpc.annotation.ServiceScan;
import com.peng.rpc.api.HandShakeService;
import com.peng.rpc.api.HelloService;
import com.peng.rpc.api.LoveService;
import com.peng.rpc.api.LoverArg;
import com.peng.rpc.serializer.CommonSerializer;
import com.peng.rpc.socket.server.SocketRpcServer;
import com.peng.test.api.impl.*;

import java.util.Arrays;

/**
 * @author Wonderson
 * @email wpp.ds@foxmail.com
 * @date 2022/2/28 20:44
 */
@ServiceScan("com.peng.test.api.impl2")
public class SocketTestServer {

    public static void main(String[] args) {
        SocketRpcServer rpcServer = new SocketRpcServer(CommonSerializer.PROTOBUF_SERIALIZER,"192.168.56.1", 9000);
        rpcServer.start();
    }

}
